﻿using System;
using System.Collections.Generic;

namespace HardStyle.SimpleEventBus
{
    public class SimpleEventBusConfiguration
    {
        /// <summary>
        /// 全局懒加载 默认false
        /// </summary>
        public bool GlobalLazyLoad { get; set; } = false;
        /// <summary>
        /// Support dependency injection
        /// </summary>
        public bool SupportDependencyInjection { get; protected set; } = false;
        /// <summary>
        /// 排除的handle
        /// </summary>
        public List<Type> ExcludeHandleTypes { get; } = new List<Type>();
        /// <summary>
        /// 添加需要排除的处理器
        /// </summary>
        /// <param name="excludeTypes"></param>
        /// <returns></returns>
        public void AddExcludeHandle(params Type[] excludeHandleTypes)
        {
            ExcludeHandleTypes.AddRange(excludeHandleTypes);
        }

    }


}
